package com.controller;

import com.entity.User;
import com.esDao.EmpDao;
import com.github.pagehelper.PageInfo;
import com.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("users")
public class testController {
    @Autowired
    private UserService userService;
    @Autowired
    private EmpDao emp;
    @PostMapping()
    public void addUser(@RequestBody User user){
        userService.addUser(user);
    }
}
